package com.netx.generics.translation;
import com.netx.generics.basic.Checker;


public class Message {
	
	private final String _message;
	private final Position _position;
	private final int _stepNumber;
	
	// for TranslationStep:
	Message(String message, Position p, int stepNumber) {
		Checker.checkEmpty(message, "message");
		this._message = message;
		this._position = p;
		this._stepNumber = stepNumber;
	}

	public String getMessage() {
		return _message;
	}

	public Position getPosition() {
		return _position;
	}

	public int getStepNumber() {
		return _stepNumber;
	}

	public String toString() {
		return getMessage();
	}
}
